package com.ecco.persistent;

import java.util.List;

import javax.ejb.Remote;

@Remote
public interface AccObColAgentRemote {
	//life cycle method
	public void save(AccObCol persistentInstance);
	//life cycle method
	public void delete(AccObCol persistentInstance);
	//life cycle method
	public AccObCol update(AccObCol detachedInstance);

	//return all AccObCol records by aoc_id as a AccObCol class
	public AccObCol findAOCById(Integer aoc_id);
	//return all AccObCol records as a list<AccObCol> 
	public List<AccObCol> findAll();
	
	//life cycle method(save)
	public void addAccObCol(Integer acc_id, Integer ob_id, Integer col_id, String comment);
	//life cycle method(update)
	public void updateAccObCol(Integer aoc_id, Integer acc_id, Integer ob_id, Integer col_id, String comment);
	//life cycle method(delete)
	public void removeAOCById(Integer aoc_id);
	
	//check exist AOC records use Account, Object, Colour classes return a boolean
	public Boolean checkAOCByAcc_Ob_Col(Account account, Objects objects, Colour colour);
	
}
